//
// Created by huayang on 9/20/19.
//

#ifndef RPCLOG_RLOG_H
#define RPCLOG_RLOG_H

#include <string>
#include "rlog_impl.h"

class RLog {
public:
    RLog() = delete;
    RLog(const RLog&) = delete;
    RLog(RLog&&) = delete;
    virtual ~RLog() = default;

    static void i(const std::string& tag, const std::string& msg)
    {
        RLogImpl::Self()->Info(tag, msg);
    }

    static void d(const std::string& tag, const std::string& msg)
    {
        RLogImpl::Self()->Debug(tag, msg);
    }

    static void w(const std::string& tag, const std::string& msg)
    {
        RLogImpl::Self()->Warn(tag, msg);
    }

    static void e(const std::string& tag, const std::string& msg)
    {
        RLogImpl::Self()->Error(tag, msg);
    }

private:

};

#endif //RPCLOG_RLOG_H
